package httpLogRequests;

import java.util.ArrayList;
import java.util.Date;

public class Page {

	private String url;
	private Date firstVisit;
	private int nbVisits;
	private ArrayList<User> users;

	public Page(String url) {
		this.url = url;
		this.nbVisits = 0;
		users = new ArrayList<User>();
	}

	public String getUrl() {
		return this.url;
	}

	public ArrayList<User> getUsers() {
		return this.users;
	}

	public void addVisitor() {
		this.nbVisits++;
	}

	public void setNbVisits(int nb) {
		this.nbVisits = nb;
	}

	public int getNbVisits() {
		return this.nbVisits;
	}

	@Override
	public String toString() {
		return this.url + " : " + this.getNbVisits();
	}

}


